From f975068fea81adc81b71864c70f9413521ef3a04 Mon Sep 17 00:00:00 2001 From: Sergej Proskurin Date: Wed, 30 Aug 2017 13:19:14 +0200 Subject: [PATCH] xen-access: Correct default value of write-to-CR4 switch The current implementation configures the test environment to always trap on writes to the CR4 control register, even on ARM. This leads to issues as calling xc_monitor_write_ctrlreg on ARM with VM_EVENT_X86_CR4 will always fail. Signed-off-by: Sergej Proskurin Acked-by: Razvan Cojocaru Acked-by: Wei Liu --- tools/tests/xen-access/xen-access.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/tests/xen-access/xen-access.c b/tools/tests/xen-access/xen-access.c index 1e69e25a16..9d960e2109 100644 --- a/tools/tests/xen-access/xen-access.c +++ b/tools/tests/xen-access/xen-access.c @@ -394,7 +394,7 @@ int main(int argc, char *argv[]) int debug = 0; int cpuid = 0; int desc_access = 0; - int write_ctrlreg_cr4 = 1; + int write_ctrlreg_cr4 = 0; uint16_t altp2m_view_id = 0; char* progname = argv[0]; -- 2.30.2